#pragma once
#include <atlimage.h>

// CComboBoxImg

class CComboBoxImg : public CComboBox
{
	DECLARE_DYNCREATE(CComboBoxImg)

public:
	CComboBoxImg();
	virtual ~CComboBoxImg();

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnPaint();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg LRESULT OnMouseHover(WPARAM wparam, LPARAM lparam);
	afx_msg LRESULT OnMouseLeave(WPARAM wparam, LPARAM lparam);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
public:
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);	
public:
	int AddString(LPCTSTR lpszString, HICON hIcon);
private:
	CImage m_imgComb;
	CImage m_imgCombThumb;
    BOOL m_bIsHover;
	BOOL m_bIsDown;	
};


